<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>2048</title>

    <style>
        * {
            margin: 0;
            padding: 0;
            list-style: none;
        }

        body {
            padding: 10px;
            box-sizing: border-box;
            height: 100vh;
            background-color: #faf8ef;
            font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif;
        }

        header {
            height: 20%;
            padding: 10px 0;
            display: flex;
            justify-content: space-between;
            user-select: none;
        }

        header h1 {
            font-weight: bolder;
            font-size: 50px;
            color: #776e65;
        }

        header .right {
            color: #fff;
        }

        header .right .score {
            background-color: #bbada0;
            text-align: center;
            border-radius: 3px;
            /* padding: 10px 20px; */
        }

        header .right .score span {
            font-weight: bold;
            font-size: 24px;
        }

        header .right .new {
            padding: 10px 20px;
            background-color: #8f7a66;
            border-radius: 3px;
            margin-top: 10px;
        }

        main {
            margin: 10px auto;
            box-sizing: border-box;
            width: 90%;
            height: 70%;
            display: grid;
            grid-template-columns: 25% 25% 25% 25%;
            grid-template-rows: 25% 25% 25% 25%;
            place-items: center;
            border: 10px solid #bbada0;
            background-color: #bbada0;
            grid-gap: 10px;
        }

        main div {
            box-sizing: border-box;
            background-color: #cdc1b4;
            /* width: 100%; */
            /* height: 100%; */
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .grid-cell {
            width: 80px;
            height: 80px;
            margin-right: 15px;
            float: left;
            border-radius: 3px;
            background: rgba(238, 228, 218, 0.35);
        }
    </style>
</head>

<body>
    <header>
        <div class="left">
            <h1>2048</h1>
        </div>
        <div class="right">
            <div class="score">
                <p>SCORE</p>
                <span>0</span>
            </div>
            <div class="new">New Game</div>
        </div>
    </header>
    <main>
        <div class="grid-cell"><span>0</span></div>
        <div class="grid-cell"><span>0</span></div>
        <div class="grid-cell"><span>0</span></div>
        <div class="grid-cell"><span>0</span></div>
        <div class="grid-cell"><span>0</span></div>
        <div class="grid-cell"><span>0</span></div>
        <div class="grid-cell"><span>0</span></div>
        <div class="grid-cell"><span>0</span></div>
        <div class="grid-cell"><span>0</span></div>
        <div class="grid-cell"><span>0</span></div>
        <div class="grid-cell"><span>0</span></div>
        <div class="grid-cell"><span>0</span></div>
        <div class="grid-cell"><span>0</span></div>
        <div class="grid-cell"><span>0</span></div>
        <div class="grid-cell"><span>0</span></div>
        <div class="grid-cell"><span>0</span></div>
    </main>
</body>

</html>